package com.sinosoft.builder.model;

import java.util.HashSet;
import java.util.Set;

/**
 * 
 * @author 潘巍（Peter Pan）
 * @since 2010-5-14 下午05:38:09
 */
public class MethodBody {

	private JavaMethod method;

	private Set<Class<?>> usedClasses = new HashSet<Class<?>>();

	public MethodBody() {
	}

	public MethodBody(JavaMethod method) {
		super();
		this.method = method;
	}

	protected JavaMethod getMethod() {
		return method;
	}

	protected void setMethod(JavaMethod method) {
		this.method = method;
	}

	public String toCode() {
		return "";
	}

	public void addType(Class<?> clazz) {
		usedClasses.add(clazz);
	}

	public Set<Class<?>> getUsedClasses() {
		return usedClasses;
	}
}
